#include <stdio.h>
int deleteChar(char[],char);
int main()
{
    while(1)
    {
    char str[81];
    char c,useless;
    printf("please enter one character you want to delete.\n");
    scanf("%c",&c);
    scanf("%c",&useless);
    printf("please enter one string you want to operate.\n");
    gets(str);
    useless=deleteChar(str,c);
    printf("start next round.\n");
    }
    return 0;

}
int deleteChar(char str[],char c)
{
   int i=0,j=0;
   char new[81];
   while(str[i]!='\0')
   {
       if (str[i]==c)
       i++;
       else
       {
       new[j]=str[i];
       i++; j++;
       }
   }
   printf("%s\n",new);
   return 0;
}